<%@page import="java.util.LinkedList"%>
<%@page import="java.util.List"%>
<%@page import="com.carlyang.jspservlet.model.People"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>EL表达式集合操作Test</title>
</head>
<body>

<!-- 

-->
<%
	List list = new LinkedList();
	list.add(0, "元素1");
	list.add(1, "元素2");
	list.add(2, "元素3");
	request.setAttribute("list", list);//将集合对象设置为request的属性
%>

<h2>list[0]:${list[0]}</h2>
<h2>list[1]:${list[1]}</h2>
<h2>list[2]:${list[2]}</h2>
</body>
</html>